
# might be linux or mingw
PLATFORM=linux
# might be pthread, boost or win32
THREADING=pthreads
# if 'true', use okFrontPanelEmulation for stimuli-based operation
EMULATION=false



CFLAGS+=-O2 -g -Wall -fPIC -I ../backend -I ../okFrontPanel 

ifeq ($(PLATFORM),"linux")
CFLAGS+=-DLINUX
else
ifeq ($(PLATFORM),"mingw")
CFLAGS+=-DWIN32
endif
endif

ifeq ($(THREADING),pthreads)
CFLAGS+=-DTHREAD_USE_PTHREAD -pthread
LFLAGS+=-pthread
else
ifeq ($(THREADING),"boost")
CFLAGS+=-DTHREAD_USE_BOOST
LFLAGS+=-lboost_thread_mt
else
ifeq ($(THREADING),"pthreads")
CFLAGS+=-DTHREAD_USE_WINDOWS
endif
endif
endif

CFLAGS+=`python-config --includes`